#pragma once
#include "Vector2.h"

class CustomRectangle
{
private:
	int X;
	int Y;
	int width;
	int height;

public:
	CustomRectangle();
	CustomRectangle(int X, int Y, int width,	int height);

	int GetHeight(){ return height;};
	int GetWidth(){return width;};
	int GetX(){ return X;};
	int GetY(){ return Y;};

	int Left(){return X;};
	int Right(){return X + width;};
	int Top(){return Y;};
	int Bottom(){return Y + height;};

	bool Intersects(CustomRectangle rect);
	bool Contains(CustomRectangle rect);
	bool Contains(Vector2 point);
	bool Contains(float x, float y);

};